<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="renderer" content="webkit">
        <title>{:SITE_WEBNAME} -- 管理中心</title>
        <link rel="stylesheet" type="text/css" href="__CSS__/pintuer.css" />
        <link rel="stylesheet" type="text/css" href="__CSS__/admin/admin.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/time/jquery.datetimepicker.css" />
        <script type="text/javascript" src="__JQ__"></script>
        <script type="text/javascript" src="__JS__/public.lib.js"></script>
        <script type="text/javascript" src="__JS__/respond.js"></script>
        <script type="text/javascript" src="__JS__/jquery.form.js"></script>
        <script type="text/javascript" src="__LY__"></script>
        <script type="text/javascript" src="__YZ__"></script>
        <script type="text/javascript" src="__JS__/jquery.submit.js"></script>
        <script type="text/javascript" src="__PUBLIC__/time/jquery.datetimepicker.js"></script>
        <script type="text/javascript" src="__JS__/files/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="__JS__/files/jquery.iframe-transport.js"></script>
        <script type="text/javascript" src="__JS__/files/jquery.fileupload.js"></script>
        <script type="text/javascript">
            //模拟滚动条框架级别
            $(document).ready(function () {
                if (!isMob()) {
                    var simulation = {};
                    simulation.obj1 = $(".admin-nav .active ul");
                    simulation.obj2 = $(".admin");
                    simulation.left1 = parseInt(simulation.obj1.css("left"));
                    simulation.left2 = parseInt(simulation.obj2.css("left"));
                    window.onscroll = function () {
                        simulation.scr = $(document).scrollLeft();
                        simulation.obj1.css({
                            left: simulation.left1 - simulation.scr
                        })
                        simulation.obj2.css({
                            left: simulation.left2 - simulation.scr
                        })
                    }
                }
            });
        </script>
    </head>

    <body>
        <div class="layout-header">
            <div class="lefter">
                <div class="logo">
                    <a href="{:U('Index/index')}" target="_blank"><img src="__IMG__/admin/logo.png" alt="后台管理系统" /></a>
                </div>
            </div>
            <div class="righter nav-navicon" id="admin-nav">
                <div class="mainer">
                    <div class="admin-navbar">
                        <span class="float-right">
                            <a class="button button-little bg-main" href="{:U('member/editpwd')}">修改密码</a>
                            <a class="button button-little bg-main" href="{:HOME_URL}" target="_blank">前台首页</a>
                            <a class="button button-little bg-yellow" href="javascript:(0)" onclick="loginOut();">注销登录</a>
                        </span>

                        <ul class="nav nav-inline admin-nav">

                            <li <if condition='$sys eq dashboard'>class="active"</if>>
                            <a href="{:U('Index/index')}" class="icon-home"> 控制台</a>
                            <ul>
                                <li <if condition='$action eq index'>class="active"</if>><a class="selected" href="{:U('Index/index')}">后台主页</a></li>
                                <li <if condition='$action eq sysconfig'>class="active"</if>><a class="selected" href="{:U('Config/sysconfig')}">站点设置</a></li>
                                <li <if condition='$action eq member'>class="active"</if>><a class="selected" href="{:U('Member/index')}">管理员管理</a></li>
                                <li <if condition='$action eq role'>class="active"</if>><a class="selected" href="{:U('Role/index')}">权限组管理</a></li>
                                <li <if condition='$action eq node'>class="active"</if>><a class="selected" href="{:U('Node/index')}">节点管理</a></li>
                            </ul>
                            </li>

                            <li <if condition='$sys eq setting'>class="active"</if>>
                            <a href="{:U('Config/sysconfig')}" class="icon-cog"> 网站设置</a>
                            <ul>
                                <li <if condition='$action eq sysconfig'>class="active"</if>><a class="selected" href="{:U('Config/sysconfig')}">站点设置</a></li>
                                <li <if condition='$action eq qq'>class="active"</if>><a class="selected" href="{:U('Config/qq')}">账号同步</a></li>
                                <li <if condition='$action eq msgtpl'>class="active"</if>><a class="selected" href="{:U('Msgtpl/index')}">消息模板配置</a></li>
                                <li <if condition='$action eq alipay'>class="active"</if>><a class="selected" href="{:U('Config/alipay')}">支付方式</a></li>
                                <li <if condition='$action eq express'>class="active"</if>><a class="selected" href="{:U('Express/index')}">快递公司</a></li>
                                <li <if condition='$action eq area'>class="active"</if>><a class="selected" href="{:U('Area/index')}">配送地区</a></li>
                                <li <if condition='$action eq cache'>class="active"</if>><a class="selected" href="{:U('Cache/clear')}">清理缓存</a></li>
                                <li <if condition='$action eq logs'>class="active"</if>><a class="selected" href="{:U('Logs/index')}">操作日志</a></li>
                            </ul>
                            </li>

                            <li <if condition='$sys eq goods'>class="active"</if>>
                            <a href="{:U('Goods/index')}" class="icon-shopping-cart"> 商品管理</a>
                            <ul>   
                                <li <if condition='$action eq index'>class="active"</if>><a class="selected" href="{:U('Goods/index')}">已上架商品</a></li>
                                <li <if condition='$action eq shelves'>class="active"</if>><a class="selected" href="{:U('Goods/shelves')}">未上架商品</a></li>
                                <li <if condition='$action eq audit'>class="active"</if>><a class="selected" href="{:U('Goods/audit')}">待审核商品</a></li>
                                <li <if condition='$action eq recycle'>class="active"</if>><a class="selected" href="{:U('Goods/recycle')}">商品回收站</a></li>
                                <li <if condition='$action eq brand'>class="active"</if>><a class="selected" href="{:U('Brand/index')}">品牌管理</a></li>
                                <li <if condition='$action eq category'>class="active"</if>><a class="selected" href="{:U('Category/index')}">商品分类</a></li>
                            </ul>
                            </li>
                            
                            <li <if condition='$sys eq store'>class="active"</if>>
                            <a href="{:U('Store/index')}" class="icon-cubes"> 店铺管理</a>
                            <ul>
                                <li <if condition='$action eq index'>class="active"</if>><a class="selected" href="{:U('Store/index')}">店铺管理</a></li>
                                <li <if condition='$action eq infos'>class="active"</if>><a class="selected" href="{:U('Store/infos')}">店铺信息</a></li>
                                <li <if condition='$action eq domain'>class="active"</if>><a class="selected" href="{:U('Store/domain')}">店铺域名</a></li>
                                <li <if condition='$action eq category'>class="active"</if>><a class="selected" href="{:U('Category/index')}">店铺分类</a></li>
                                <li <if condition='$action eq audit'>class="active"</if>><a class="selected" href="{:U('Audit/index')}">店铺审核</a></li>
                            </ul>
                            </li>

                            <li <if condition='$sys eq User'>class="active"</if>>
                            <a href="{:U('User/index')}" class="icon-user"> 会员管理</a>
                            <ul>
                                <li <if condition='$action eq user'>class="active"</if>><a class="selected" href="{:U('User/index')}">会员管理</a></li>
                                <li <if condition='$action eq grade'>class="active"</if>><a class="selected" href="{:U('Grade/index')}">会员级别</a></li>
                                <li <if condition='$action eq notice'>class="active"</if>><a class="selected" href="{:U('Notice/index')}">会员通知</a></li>
                            </ul>
                            </li>
                            <li <if condition='$sys eq trade'>class="active"</if>>
                            <a href="{:U('Order/index')}" class="icon-usd"> 交易管理</a>
                            <ul>
                                <li <if condition='$action eq order'>class="active"</if>><a class="selected" href="{:U('Order/index')}">实物订单</a></li>
                                <li <if condition='$action eq inquiry'>class="active"</if>><a class="selected" href="{:U('Order/orderInquiry')}">订单查询</a></li>
                                <li <if condition='$action eq refund'>class="active"</if>><a class="selected" href="{:U('Order/refund')}">退款管理</a></li>
                                <li <if condition='$action eq inform'>class="active"</if>><a class="selected" href="{:U('Inform/index')}">举报管理</a></li>
                                <li <if condition='$action eq advice'>class="active"</if>><a class="selected" href="{:U('Advice/index')}">用户咨询</a></li>
                                <li <if condition='$action eq comment'>class="active"</if>><a class="selected" href="{:U('Comment/index')}">评价管理</a></li>
                            </ul>
                            </li>

                            <li <if condition='$sys eq website'>class="active"</if>>
                            <a href="{:U('Navigation/index')}" class="icon-wrench"> 平台广告</a>
                            <ul>
                                <li <if condition='$action eq navigation'>class="active"</if>><a class="selected" href="{:U('Navigation/index')}">页面导航</a></li>
                                <li <if condition='$action eq adv'>class="active"</if>><a class="selected" href="{:U('Adv/index')}">广告管理</a></li>
                                <li <if condition='$action eq web'>class="active"</if>><a class="selected" href="{:U('Web/index')}">商品推荐管理</a></li>
                                <li <if condition='$action eq link'>class="active"</if>><a class="selected" href="{:U('Link/index')}">友情连接</a></li>
                                <li <if condition='$action eq keyword'>class="active"</if>><a class="selected" href="{:U('Keyword/index')}">搜索关键字</a></li>
                            </ul>
                            </li>

                            <li <if condition='$sys eq operate'>class="active"</if>>
                            <a href="{:U('Coupon/index')}" class='icon-history'> 活动运营</a>
                            <ul>
                                <li <if condition='$action eq discount'>class="active"</if>><a class="selected" href="{:U('Seckill/index',array('tp'=>'discount'))}">限时折扣</a></li>
                                <li <if condition='$action eq seckill'>class="active"</if>><a class="selected" href="{:U('Seckill/index',array('tp'=>'seckill'))}">秒杀</a></li>
                                <li <if condition='$action eq coupon'>class="active"</if>><a class="selected" href="{:U('Coupon/index')}">满即送</a></li>
                                <li <if condition='$action eq voucher'>class="active"</if>><a class="selected" href="{:U('Voucher/index')}">代金券</a></li>
                                <li <if condition='$action eq topic'>class="active"</if>><a class="selected" href="{:U('Topic/index')}">专题管理</a></li>
                            </ul>
                            </li>

                            <li <if condition='$sys eq statistics'>class="active"</if>>
                            <a href="{:U('Statistics/index')}" class='icon-bar-chart-o'> 统计结算</a>
                            <ul>
                                <li <if condition='$action eq index'>class="active"</if>><a class="selected" href="{:U('Statistics/index')}">网站信息统计</a></li>
                                <li <if condition='$action eq users'>class="active"</if>><a class="selected" href="{:U('Statistics/users')}">会员统计排行</a></li>
                                <li <if condition='$action eq goods'>class="active"</if>><a class="selected" href="{:U('Statistics/goods')}">商品分析排行</a></li>

<!--                                <li <if condition='$action eq store'>class="active"</if>><a class="selected" href="{:U('Statistics/store')}">店铺统计</a></li>
                        <li <if condition='$action eq discount'>class="active"</if>><a class="selected" href="{:U('Discount/index')}">销售报告</a></li>
                        <li <if condition='$action eq discount'>class="active"</if>><a class="selected" href="{:U('Statistics/afterSale')}">售后统计</a></li>
                        <li <if condition='$action eq commission'>class="active"</if>><a class="selected" href="{:U('Commission/index')}">佣金管理</a></li>-->
                            </ul>
                            </li>

                            <li <if condition='$sys eq news'>class="active"</if>>
                            <a href="{:U('Article/index')}" class='icon-tasks'> 文章列表</a>
                            <ul>
                                <li <if condition='$action eq article'>class="active"</if>><a class="selected" href="{:U('Article/index')}">文章列表</a></li>
                                <li <if condition='$action eq category'>class="active"</if>><a class="selected" href="{:U('ArticleCat/index')}">文章分类</a></li>
                            </ul>
                            </li>

                        </ul>
                    </div>
                    <div class="admin-bread">
                        <span class="text-blue">您好，{:session('manager_auth.truename')}，欢迎您的光临。</span>
                        <ul class="bread">
                            <li><a href="index.html" class="icon-home"> 开始</a></li>
                            <li>后台首页</li>
                        </ul>
                    </div>
                </div>
            </div>
            {__CONTENT__}
    </body>
</html>
<script type="text/javascript">
    function loginOut() {
        layer.confirm('确定退出平台吗？', {
            btn: ['确认', '取消'] //按钮
        }, function () {
            var a = Aajax("{:U('Login/loginOut')}");
            if (a.status) {
                layer.alert(a.msg, function () {
                    window.location.href = "{:U('Login/index')}";
                });
            } else {
                layer.alert(a.msg);
            }
        }, function () {

        });
    }
</script>
